<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.min.js"></script>
</head>
<body> 
    <div id="app">
        <div v-on:click="divButton">
            <button v-on:click.stop="btnButton">点击1 stop</button>
        </div>
        <div v-on:click="divButton">
            <button v-on:click="btnButton">点击2</button>
        </div>
    </div>
    <script>
        var vm = new Vue({
            el:"#app",
            data: {

            },
            methods: {
                divButton() {
                    alert('触发了div')
                },
                btnButton() {
                    console.log('触发了button')
                }
            }
        })
    </script>
</body>
</html>


